/*
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. 
 */
package com.icinfo.cloud.provider.punish.config.service;

import com.icinfo.cloud.common.core.page.PageResponse;
import com.icinfo.cloud.provider.punish.config.dto.PhraseQueryPageDto;
import com.icinfo.cloud.provider.punish.config.dto.PhraseSaveDto;
import com.icinfo.cloud.provider.punish.config.vo.PhraseCategoryVo;
import com.icinfo.cloud.provider.punish.config.vo.PhraseVo;
import com.icinfo.framework.core.service.BaseService;
import org.springframework.web.bind.annotation.PathVariable;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * 描述: 常用短语表 case_approval_phrases 对应的Service接口.<br>
 *
 * @author framework generator
 * @date 2022年02月16日
 */
public interface IConfigCasePhrasesService extends BaseService {

    /**
     * query
     * @param phraseQueryPageDto
     * @return
     */
    PageResponse<PhraseVo> getList(PhraseQueryPageDto phraseQueryPageDto);


    /**
     * query type
     * @param
     * @return
     */
    List<PhraseCategoryVo> getPhraseCategoryList();

    /**
     * save
     * @param casePhrases
     * @return
     */
    boolean savePhrase(PhraseSaveDto casePhrases);

    /**
     * modify
     * @param casePhrases
     * @return
     */
    boolean modifyPhrase(PhraseSaveDto casePhrases);

    /**
     * remove
     * @param caseId
     * @return
     */
    boolean removePhrase(String caseId);

    /**
     * 短语详情
     * @param id
     * @return
     */
    PhraseVo getPhraseDetail(@NotBlank @PathVariable("id") String id);
}